<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5" th:fragment="headerNoneBg(title,keywords)">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"/>
    <meta name="renderer" content="webkit"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta http-equiv="Cache-control" content="no-cache">
    <meta name="keywords" th:content="${keywords ?: keywords}"/>
    <meta name="description" th:content="${site_description}"/>
    <link rel="shortcut icon" th:href="@{/user/img/favicon.png}"/>
    <link rel="apple-touch-icon" th:href="@{/user/img/apple-touch-icon.png}"/>
    <title>
        <th:block th:text="${title ?: '首页'}+' - '+${commons.site_option('site_title','菜鸟毕设')}"></th:block>
    </title>
    <link th:href="@{//cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet"
          type="text/css"/>
    <link th:href="@{//cdn.staticfile.org/highlight.js/9.9.0/styles/xcode.min.css}" rel="stylesheet"/>
    <link th:href="@{/user/css/style.min.css}" rel="stylesheet"/>
    <link th:href="@{/user/css/index.css}" rel="stylesheet"/>
    <script th:src="@{//cdn.staticfile.org/jquery/2.2.3/jquery.min.js}"></script>
    <script src="https://www.layuicdn.com/layui-v2.5.4/layui.js" charset="utf-8"></script>
    <link th:href="@{//www.layuicdn.com/layui-v2.5.4/css/layui.css}" rel="stylesheet" media="all"/>
    <script>
        console.log("寻求一起接任务的兄弟，一起挣点小钱。有意向的直接加我微信并备注，本人微信号：15086626250");
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?5ad598be02bded436eef827c93450ed2";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body gtools_scp_screen_capture_injected="true" th:class="${is_post}?'':'bg-grey'">
<!--[if lt IE 8]>
<div class="browsehappy" role="dialog">
    当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/" target="_blank">升级你的浏览器</a>。
</div>
<![endif]-->
<!--<header id="header" class="header" th:styleappend="'background:'+${adminCommons.rand_color()}+';'"
        style="border-radius: 85px;">-->
<header id="header" class="header" style="border-radius: 85px;">
    <div class="navbar-container">
        <a href="/index" class="navbar-logo">
            <img th:src="@{/user/img/logo.png}" alt="首页" style="border-radius: 30px;"/>
        </a>
        <div class="navbar-menu">
            <!--            <a th:href="${commons.site_url('/question')}">问答<span class="layui-badge-dot"></span></a>-->
            <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
               th:href="${commons.site_url('/question/1')}">问答</a><span class="layui-badge-dot"></span>
            <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
               th:href="${commons.site_url('/graduate_category')}">毕设分类</a>
            <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
               th:href="${commons.site_url('/archives')}">所有毕设</a>
            <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
               th:href="${commons.site_url('/timeLine')}">时间线</a>
            <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
               th:href="${commons.site_url('/learnCode')}">资源库</a>
            <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
               th:href="${commons.site_url('/links')}">友链</a>
            <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
               th:href="${commons.site_url('/about')}">关于</a>
        </div>
        <!--如果未登录-->
        <div sec:authorize="!isAuthenticated()" style="position: fixed;right: 0px;top: 0px;height: 80px;line-height: 80px;overflow: hidden;vertical-align: center;">
            <a class="layui-btn layui-btn-primary layui-btn-sm layui-btn-radius" th:href="@{/toLogin}" role="button" style="margin-top: 20px;">
                <svg class="bi bi-person-fill" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
                    <path fill-rule="evenodd" d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
                </svg>
                登录
            </a>
        </div>
        <!--如果已登录-->
        <div sec:authorize="isAuthenticated()" style="position: fixed;right: 40px;top: 5px;">
            <ul class="layui-nav" style="background-color: transparent;">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img th:src="@{${session.loginUser.getAvatar()}}" class="layui-nav-img">
                        <span sec:authentication="name"></span>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">修改信息</a></dd>
                        <dd><a href="javascript:;">安全管理</a></dd>
                        <dd><a th:href="@{/logout}">退了</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <div class="navbar-search" onclick="">
            <span class="icon-search"></span>
            <form role="search" onsubmit="return false;">
                <span class="search-box">
                    <input type="text" id="search-inp" class="input" placeholder="搜索...............回车直达" maxlength="30"
                           autocomplete="off"/>
                </span>
            </form>
        </div>

        <div class="navbar-mobile-menu">
            <span class="icon-menu cross"><span class="middle"></span></span>
            <ul>
                <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
                   th:href="${commons.site_url('/question/1')}">问答</a><span class="layui-badge-dot"></span>
                <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
                   th:href="${commons.site_url('/graduate_category')}">毕设分类</a>
                <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
                   th:href="${commons.site_url('/archives')}">所有毕设</a>
                <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
                   th:href="${commons.site_url('/timeLine')}">时间线</a>
                <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
                   th:href="${commons.site_url('/learnCode')}">资源库</a>
                <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
                   th:href="${commons.site_url('/links')}">友链</a>
                <a th:class="'layui-btn layui-btn-radius layui-btn-'+${commons.rand_layui_class()} +' layui-btn-'+${commons.rand_layui_class_size()}"
                   th:href="${commons.site_url('/about')}">关于</a>
            </ul>
        </div>
    </div>
</header>
<script>
    layui.use('element', function(){
        var element = layui.element;
    });
</script>
</body>
</html>